package com.masterrabbit.sn.controller;

import com.masterrabbit.common.core.web.domain.AjaxResult;
import com.masterrabbit.sn.service.OrderRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/orderRecords")
public class OrderRecordsController {
    @Autowired
    private OrderRecordsService orderRecordsService;
    @GetMapping("/getOrderRecords/{orderId}")
    public AjaxResult getOrderRecords(@PathVariable String orderId) {
        return AjaxResult.success(orderRecordsService.getOrderRecordsByOrderId(orderId));
    }
}
